package com.leesche.netdoll.communication.protocol.decoder;

import java.util.List;

public class DecoderConfiguration {

	/**
	 * 解码器类名
	 */
	private String decoder;

	private List<Mapper> mappers;

	public String getDecoder() {
		return decoder;
	}

	public void setDecoder(String decoder) {
		this.decoder = decoder;
	}

	public List<Mapper> getMappers() {
		return mappers;
	}

	public void setMappers(List<Mapper> mappers) {
		this.mappers = mappers;
	}

	public static class Mapper {
		private String field;

		private int offset;

		private int length;

		private String resolver;

		public String getField() {
			return field;
		}

		public void setField(String field) {
			this.field = field;
		}

		public int getOffset() {
			return offset;
		}

		public void setOffset(int offset) {
			this.offset = offset;
		}

		public int getLength() {
			return length;
		}

		public void setLength(int length) {
			this.length = length;
		}

		public String getResolver() {
			return resolver;
		}

		public void setResolver(String resolver) {
			this.resolver = resolver;
		}

	}
}
